<?php
if(isset($feeds)){		
foreach($feeds as $feed):
?>
	<div class="panel panel-default">
		<div class="panel-heading newsfeed">
			<h3><a href="<?php echo $feed->get_permalink(); ?>"><?php echo $feed->get_title(); ?></a></h3>
			<small><?php echo $feed->get_description(); ?></small>
		</div>
		<div class="panel-body">
			<?php
			/*
			Here, we'll loop through all of the items in the feed, and $item represents the current item in the loop.
			*/
			foreach ($feed->get_items() as $item):
			?>
			<div class="row">
				<div class="col-md-12">
				<h4><a href="<?php echo $item->get_permalink(); ?>"><?php echo $item->get_title(); ?></a></h4>
				<p><?php echo $item->get_description(); ?></p>
				<p><small>Posted on <?php echo $item->get_date('j F Y | g:i a'); ?></small></p>
				</div>
			</div>
			<?php endforeach; ?>
		</div>
	</div>
	<?php endforeach; ?>
	<?}else{?>
	<div class="panel panel-default">
		<div class="panel-heading newsfeed">
			<h3>Feed List</h3>
			
		</div>
		<div class="panel-body">
			<p>No Feeds Availble</p>
		</div>
	</div>
	<?}?>
  
